package thread.example2;

/**
 * 匿名内部类 实现
 */
public class InnerClassThreadDemo {

    public static void main(String[] args) {
        new Thread(
                new Runnable() {
                    @Override
                    public void run() {
                        for (int i = 0; i < 50; i++) {
                            System.out.println("播放音乐"+i);
                        }
                    }
                }
        ).start();


        for (int i = 0; i < 50; i++) {
            System.out.println("打游戏"+i);

        }

    }
}

